class ArticleItem{
  int id;
  String author;
  String niceDate;
  String title;
  String chapterName;
  bool isCollect;
  String url;
  bool isCanCollect;

  ArticleItem({this.id, this.author, this.niceDate, this.title,
    this.chapterName, this.isCollect,this.url,this.isCanCollect = true});

  factory ArticleItem.fromJson(Map<String,dynamic> json){
    return ArticleItem(id:json["id"],author: json["author"],niceDate: json["niceDate"],title: json["title"],
        chapterName: json["chapterName"],isCollect: json["isCollect"],url: json["url"]);
  }
}